package com.gm.blog.config;

import com.gm.blog.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 用于将一个实体类放入spring容器
 */
@Configuration
public class BeanConfig {
    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
